package com.codegeek.project.slope.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.codegeek.project.slope.mapper.SlopeNvrMapper;
import com.codegeek.project.slope.domain.SlopeNvr;
import com.codegeek.project.slope.service.ISlopeNvrService;

/**
 * nvrService业务层处理
 * 
 * @author codegeek
 * @date 2020-02-17
 */
@Service
public class SlopeNvrServiceImpl implements ISlopeNvrService 
{
    @Autowired
    private SlopeNvrMapper slopeNvrMapper;

    /**
     * 查询nvr
     * 
     * @param nvrId nvrID
     * @return nvr
     */
    @Override
    public SlopeNvr selectSlopeNvrById(Long nvrId)
    {
        return slopeNvrMapper.selectSlopeNvrById(nvrId);
    }

    /**
     * 查询nvr列表
     * 
     * @param slopeNvr nvr
     * @return nvr
     */
    @Override
    public List<SlopeNvr> selectSlopeNvrList(SlopeNvr slopeNvr)
    {
        return slopeNvrMapper.selectSlopeNvrList(slopeNvr);
    }

    /**
     * 新增nvr
     * 
     * @param slopeNvr nvr
     * @return 结果
     */
    @Override
    public int insertSlopeNvr(SlopeNvr slopeNvr)
    {
        return slopeNvrMapper.insertSlopeNvr(slopeNvr);
    }

    /**
     * 修改nvr
     * 
     * @param slopeNvr nvr
     * @return 结果
     */
    @Override
    public int updateSlopeNvr(SlopeNvr slopeNvr)
    {
        return slopeNvrMapper.updateSlopeNvr(slopeNvr);
    }

    /**
     * 批量删除nvr
     * 
     * @param nvrIds 需要删除的nvrID
     * @return 结果
     */
    @Override
    public int deleteSlopeNvrByIds(Long[] nvrIds)
    {
        return slopeNvrMapper.deleteSlopeNvrByIds(nvrIds);
    }

    /**
     * 删除nvr信息
     * 
     * @param nvrId nvrID
     * @return 结果
     */
    @Override
    public int deleteSlopeNvrById(Long nvrId)
    {
        return slopeNvrMapper.deleteSlopeNvrById(nvrId);
    }
}
